package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import org.apache.kafka.common.protocol.types.Field;

/**
 * @TableName t_order
 */
@TableName(value = "t_order")
@Data
public class TOrder implements Serializable {
    /**
     *用户ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编码
     */
    private String code;

    /**
     * 消费者
     */
    private Integer userId;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 产品数量
     */
    private Integer count;

    /**
     * 下单时间
     */
    private Date createTime;

    /**
     * 订单状态 0待支付，1已支付，2已退款
     */
    private Integer status;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private TUser user;
    @TableField(exist = false)
    private String realName;
    @TableField(exist = false)
    private String mobile;
    @TableField(exist = false)
    private String email;
}